﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Formboard.Request
{
    public class GetMoveHistoryRequest 
    {
        public GetMoveHistoryRequest()
        {
        }
        
        public Moves moves = new Moves();        
        
        public class Move
        {
            public Move() { }
            public Move(int a, int b, int c)
            {
                seq = a;
                row = b;
                column = c;
            }
            [XmlAttribute("seq")]
            public int seq;
            [XmlAttribute("row")]
            public int row;
            [XmlAttribute("column")]
            public int column;

        }
        
        
        public class Moves 
        {          
            public Moves (){ }
            [XmlAttribute("from")]
            public int from = 12;
            [XmlAttribute("to")]
            public int to;
            [XmlAttribute("total")]
            public int total;
            [XmlAttribute("board")]
            public String board;
            [XmlAttribute("url")]
            public String url;
            [XmlElement("move")]
            public List<Move> moves = new List<Move>();
        }          
    }
  
}
